package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户资金详情
 * </p>
 *
 * @author jcd
 * @since 2024-07-25
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("e_user_fund_detail")
public class UserFundDetail {

    @TableId(value = "id", type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * 用户类型
     */
    private String userType;

    /**
     * 用户id
     */
    private String uid;

    /**
     * 资金分类
     */
    private String category;

    /**
     * 资金类型
     */
    private String type;

    /**
     * 0:减 1:加
     */
    private Integer pm;

    /**
     * 本次操作资金
     */
    private BigDecimal money;

    /**
     * 剩余资金
     */
    private BigDecimal residueMoney;

    /**
     * 标题
     */
    private String title;

    /**
     * 详情
     */
    private String details;

    /**
     * 资金涉及订单号
     */
    private String orderNumber;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long createBy;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long updateBy;

    private Date createTime;

    private Date updateTime;


    @TableLogic(value="0",delval="1")
    private Integer delFlag;


}
